<include file="Template:pageheader"/>

<form id="adddadminuser" method="post" action="__URL__/addadminuserOk">
	<table>
		<tr>	
			<td>用户名</td>
			<td><input type="text" class="input" name="name" /></td>
		</tr>
		<tr>	
			<td>邮  箱</td>
			<td><input type="input" class="input" name="mail" value=""/></td>
		</tr>
		<tr>	
			<td>密  码</td>
			<td><input type="text" class="input" name="password" value=""/></td>
		</tr>
		<tr>	
			<td>确定密码</td>
			<td>
				<input type="text" class="input" name="confirmpwd" value=""/>
			</td>
		</tr>			
		<tr>	
			<td>用户组选择</td>
			<td>
				<select class="select" id="role_id" name="role_id" value="">
					<option value="">请选择用户组</option>
					<volist name="roleList" id="role">
						<option value="{$role.id}">{$role.name}</option>
					</volist>
				</select>
			</td>
		</tr>
	</table>
	<input type="button" onclick="submitForm();" value="提交"/>
</form>

<script>
	//提交表单前验证
	function submitForm(){
		//用户名		
		//密码		
		//用户组
		var role_id = document.getElementById('role_id');
		if(role_id.value == '') {
			alert('请选择用户组');
			return;
		}
		document.getElementById('adddadminuser').submit();		
	}
	
</script>




<include file="Template:pagefooter"/>